import api from '@/services/user';
export const login = async (params: UserApi.LoginParams) => {
  const res = await api.login(params);
  return res.data;
};
export const getCode = async () => {
  const res = await api.getCode();
  return res.data;
};

export default {
  login,
  getCode,
};
